package NGUYENTHECUONG_TINHTIEN;

public class MODELS {

	public int TINHTOAN(int batdau, int ketthuc){
		int result = 0;
		int sotien =0;
		int tg=ketthuc - batdau;
		if(batdau>=7 && ketthuc <=17 ){
			if(tg>6){
			 sotien =tg*200- tg*200*10/100;
			}
			else {
				 sotien=tg*200;
			}result =sotien;
		} 
		if(batdau>=17&&ketthuc <=24){
			if(tg >4){
				sotien =tg*150- tg*150*12/100;
			}
			else {
				 sotien=tg*150;
		}result =sotien;
	} 
		return result;
	} 
}
